<?php
/*
 * @Author: 逅来
 * @Description: 
 * @Date: 2023-03-23 14:25:42
 * @LastEditTime: 2023-03-23 14:32:13
 * @FilePath: \xiangce_houtai-master\application\admin\model\photo\Bind.php
 * @email: 934749708@qq.com
 */

namespace app\admin\model\photo;

use think\Model;


class Bind extends Model
{

    

    

    // 表名
    protected $name = 'photo_bind';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = true;

    // 追加属性
    protected $append = [

    ];
    
     public function Itinerary()
    {
         
         return $this->hasOne('Itinerary', 'id', 'itinerary_id');
         
    }
    public function user()
    {
         
         return $this->hasOne(\app\admin\model\User::class, 'id', 'user_id');
         
    }

    







}
